package com.linln.modules.system.service;

import com.github.pagehelper.Page;
import com.github.pagehelper.PageHelper;
import com.linln.modules.system.dao.WxUserMapper;
import com.linln.modules.system.entity.WxUser;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class WxUserServices {

    @Autowired
    private WxUserMapper wxUserMapper;

    public Page<WxUser> getIndexWxUser(Integer pageNum, Integer pageSize, String name) {
        PageHelper.startPage(pageNum, pageSize, true);
        Page<WxUser> pager = wxUserMapper.getAllWxUserPager(name);
        return pager;
    }
}
